.PHONY:mq_connectiontest
mq_connectiontest:mq_connectiontest.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -g -std=c++14 $^ -o $@ -lgtest -lprotobuf -lsqlite3 -I../mqthird/include
.PHONY:mq_channeltest
mq_channeltest:mq_channeltest.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -g -std=c++14 $^ -o $@ -lgtest -lprotobuf -lsqlite3 -I../mqthird/include
.PHONY:mq_consumertest
mq_consumertest:mq_consumertest.cc ../mqcommon/mq_msg.pb.cc
	g++ -g -std=c++14 $^ -o $@ -lgtest -lprotobuf -lsqlite3
.PHONY:mq_routetest
mq_routetest:mq_routetest.cc ../mqcommon/mq_msg.pb.cc
	g++ -g -std=c++14 $^ -o $@ -lgtest -lprotobuf -lsqlite3
.PHONY:mq_hosttest
mq_hosttest:mq_hosttest.cc ../mqcommon/mq_msg.pb.cc
	g++ -g -std=c++14 $^ -o $@ -lgtest -lprotobuf -lsqlite3
.PHONY:mq_msgtest
mq_msgtest:mq_msgtest.cc ../mqcommon/mq_msg.pb.cc
	g++ -g -std=c++14 $^ -o $@ -lgtest -lprotobuf -lsqlite3
.PHONY:mq_bindingtest
mq_bindingtest:mq_bindingtest.cc
	g++ -std=c++14 $^ -o $@ -lgtest -lprotobuf -lsqlite3
.PHONY:mq_queuetest
mq_queuetest:mq_queuetest.cc
	g++ -std=c++14 $^ -o $@ -lgtest -lprotobuf -lsqlite3
.PHONY:mq_exchangetest
mq_exchangetest:mq_exchangetest.cc
	g++ -std=c++14 $^ -o $@ -lgtest -lprotobuf -lsqlite3
mq_filetest:mq_filetest.cc
	g++ -std=c++11 $^ -o $@
.PHONY:clean
clean:
	rm -rf mq_filetest mq_exchangetest mq_queuetest mq_bindingtest mq_msgtest mq_hosttest mq_routetest mq_consumertest mq_channeltest mq_connectiontest data/ 